package order.service.pojo;

import order.service.Order;

import java.util.ArrayList;
import java.util.List;

//命令调用类
public class Broke {
    private List<Order> orderList = new ArrayList<Order>();

    public void takeList(Order order) {
        orderList.add(order);
    }

    public void placeList() {
        for (Order item : orderList) {
            item.execute();
        }
    }
}
